package com.ln.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ln.dao.IBaseDAO;
import com.ln.dao.impl.NotesCollectDAO;
import com.ln.dto.ParamsMap;
import com.ln.pojo.impl.NotesCollectPOJO;
import com.ln.service.BaseService;

@Service
@Transactional
public class NotesCollectService extends BaseService<NotesCollectPOJO, Integer> {
	@Autowired
	private NotesCollectDAO notesCollectDAO;

	@Override
	protected IBaseDAO<NotesCollectPOJO, Integer> getDao() {
		return notesCollectDAO;
	}

	public boolean isExist(ParamsMap paramsMap) {
		return (notesCollectDAO.isExist(paramsMap) > 0) ? true : false;
	}

}
